//
//  ViewController.m
//  exchangeMethod
//
//  Created by wanglei on 17/2/9.
//  Copyright © 2017年 wanglei. All rights reserved.
//

#import "ViewController.h"
#import "MethodForwardTest.h"
#import "MethodSwizzlingTest.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    MethodForwardTest *methodForward = [[MethodForwardTest alloc] init];
    [methodForward test];  // test 方法只有定义没有实现，需要进行消息转发
    
    MethodSwizzlingTest *methodSwizzling = [[MethodSwizzlingTest alloc] init];
    [methodSwizzling test];  // 演示Method Swizzling的实现

}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
